package day5;

public class t7 {
    public static void main(String[] args) {
        int []arr={1,2,4,5,8,9};
        boolean i =search(arr,3);
        System.out.println(i);
    }

    public static boolean search(int []arr,int n) {
        for (int i = 0; i < arr.length; i++) {
            if(n==arr[i]) return true;
        }
        return false;
    }
}
